<template>
	<view>
		<block v-for="(item,index) in list" :key="index">
			<view class="" style="width:100vw; height: 80rpx; border-bottom: 1px solid #868686;" @click="goout(item.id,item.title)">
				{{item.title}}
			</view>
		</block>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[''],
			}
		},
		onLoad() {
			var that = this;
			that.getList()
		},
		methods: {
			getList(){
				var that = this;
				uni.request({
					url: that.global.url + '/api/qianyu_smfw/common/citylist',
					method: "POST",
					header: {
						'site-id': that.global.site_id, //自定义请求头信息
						'token': uni.getStorageSync('token')
					},
					data: {},
					success(res) {
						let result = res.data
						if (result.code == 1) {
							that.list = result.data
						}
					}
				})
			},
			goout(){
				
			}
		}
	}
</script>

<style>

</style>
